package com.cn.dream_order_server.pojo;

import java.util.ArrayList;
import java.util.List;

public class OrderOrderdetailsExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public OrderOrderdetailsExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andOrderdetailsIdIsNull() {
            addCriterion("orderDetails_id is null");
            return (Criteria) this;
        }

        public Criteria andOrderdetailsIdIsNotNull() {
            addCriterion("orderDetails_id is not null");
            return (Criteria) this;
        }

        public Criteria andOrderdetailsIdEqualTo(String value) {
            addCriterion("orderDetails_id =", value, "orderdetailsId");
            return (Criteria) this;
        }

        public Criteria andOrderdetailsIdNotEqualTo(String value) {
            addCriterion("orderDetails_id <>", value, "orderdetailsId");
            return (Criteria) this;
        }

        public Criteria andOrderdetailsIdGreaterThan(String value) {
            addCriterion("orderDetails_id >", value, "orderdetailsId");
            return (Criteria) this;
        }

        public Criteria andOrderdetailsIdGreaterThanOrEqualTo(String value) {
            addCriterion("orderDetails_id >=", value, "orderdetailsId");
            return (Criteria) this;
        }

        public Criteria andOrderdetailsIdLessThan(String value) {
            addCriterion("orderDetails_id <", value, "orderdetailsId");
            return (Criteria) this;
        }

        public Criteria andOrderdetailsIdLessThanOrEqualTo(String value) {
            addCriterion("orderDetails_id <=", value, "orderdetailsId");
            return (Criteria) this;
        }

        public Criteria andOrderdetailsIdLike(String value) {
            addCriterion("orderDetails_id like", value, "orderdetailsId");
            return (Criteria) this;
        }

        public Criteria andOrderdetailsIdNotLike(String value) {
            addCriterion("orderDetails_id not like", value, "orderdetailsId");
            return (Criteria) this;
        }

        public Criteria andOrderdetailsIdIn(List<String> values) {
            addCriterion("orderDetails_id in", values, "orderdetailsId");
            return (Criteria) this;
        }

        public Criteria andOrderdetailsIdNotIn(List<String> values) {
            addCriterion("orderDetails_id not in", values, "orderdetailsId");
            return (Criteria) this;
        }

        public Criteria andOrderdetailsIdBetween(String value1, String value2) {
            addCriterion("orderDetails_id between", value1, value2, "orderdetailsId");
            return (Criteria) this;
        }

        public Criteria andOrderdetailsIdNotBetween(String value1, String value2) {
            addCriterion("orderDetails_id not between", value1, value2, "orderdetailsId");
            return (Criteria) this;
        }

        public Criteria andOrderIdIsNull() {
            addCriterion("order_id is null");
            return (Criteria) this;
        }

        public Criteria andOrderIdIsNotNull() {
            addCriterion("order_id is not null");
            return (Criteria) this;
        }

        public Criteria andOrderIdEqualTo(String value) {
            addCriterion("order_id =", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdNotEqualTo(String value) {
            addCriterion("order_id <>", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdGreaterThan(String value) {
            addCriterion("order_id >", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdGreaterThanOrEqualTo(String value) {
            addCriterion("order_id >=", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdLessThan(String value) {
            addCriterion("order_id <", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdLessThanOrEqualTo(String value) {
            addCriterion("order_id <=", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdLike(String value) {
            addCriterion("order_id like", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdNotLike(String value) {
            addCriterion("order_id not like", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdIn(List<String> values) {
            addCriterion("order_id in", values, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdNotIn(List<String> values) {
            addCriterion("order_id not in", values, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdBetween(String value1, String value2) {
            addCriterion("order_id between", value1, value2, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdNotBetween(String value1, String value2) {
            addCriterion("order_id not between", value1, value2, "orderId");
            return (Criteria) this;
        }

        public Criteria andCommodityIdIsNull() {
            addCriterion("commodity_id is null");
            return (Criteria) this;
        }

        public Criteria andCommodityIdIsNotNull() {
            addCriterion("commodity_id is not null");
            return (Criteria) this;
        }

        public Criteria andCommodityIdEqualTo(String value) {
            addCriterion("commodity_id =", value, "commodityId");
            return (Criteria) this;
        }

        public Criteria andCommodityIdNotEqualTo(String value) {
            addCriterion("commodity_id <>", value, "commodityId");
            return (Criteria) this;
        }

        public Criteria andCommodityIdGreaterThan(String value) {
            addCriterion("commodity_id >", value, "commodityId");
            return (Criteria) this;
        }

        public Criteria andCommodityIdGreaterThanOrEqualTo(String value) {
            addCriterion("commodity_id >=", value, "commodityId");
            return (Criteria) this;
        }

        public Criteria andCommodityIdLessThan(String value) {
            addCriterion("commodity_id <", value, "commodityId");
            return (Criteria) this;
        }

        public Criteria andCommodityIdLessThanOrEqualTo(String value) {
            addCriterion("commodity_id <=", value, "commodityId");
            return (Criteria) this;
        }

        public Criteria andCommodityIdLike(String value) {
            addCriterion("commodity_id like", value, "commodityId");
            return (Criteria) this;
        }

        public Criteria andCommodityIdNotLike(String value) {
            addCriterion("commodity_id not like", value, "commodityId");
            return (Criteria) this;
        }

        public Criteria andCommodityIdIn(List<String> values) {
            addCriterion("commodity_id in", values, "commodityId");
            return (Criteria) this;
        }

        public Criteria andCommodityIdNotIn(List<String> values) {
            addCriterion("commodity_id not in", values, "commodityId");
            return (Criteria) this;
        }

        public Criteria andCommodityIdBetween(String value1, String value2) {
            addCriterion("commodity_id between", value1, value2, "commodityId");
            return (Criteria) this;
        }

        public Criteria andCommodityIdNotBetween(String value1, String value2) {
            addCriterion("commodity_id not between", value1, value2, "commodityId");
            return (Criteria) this;
        }

        public Criteria andCommodityNumIsNull() {
            addCriterion("commodity_num is null");
            return (Criteria) this;
        }

        public Criteria andCommodityNumIsNotNull() {
            addCriterion("commodity_num is not null");
            return (Criteria) this;
        }

        public Criteria andCommodityNumEqualTo(Integer value) {
            addCriterion("commodity_num =", value, "commodityNum");
            return (Criteria) this;
        }

        public Criteria andCommodityNumNotEqualTo(Integer value) {
            addCriterion("commodity_num <>", value, "commodityNum");
            return (Criteria) this;
        }

        public Criteria andCommodityNumGreaterThan(Integer value) {
            addCriterion("commodity_num >", value, "commodityNum");
            return (Criteria) this;
        }

        public Criteria andCommodityNumGreaterThanOrEqualTo(Integer value) {
            addCriterion("commodity_num >=", value, "commodityNum");
            return (Criteria) this;
        }

        public Criteria andCommodityNumLessThan(Integer value) {
            addCriterion("commodity_num <", value, "commodityNum");
            return (Criteria) this;
        }

        public Criteria andCommodityNumLessThanOrEqualTo(Integer value) {
            addCriterion("commodity_num <=", value, "commodityNum");
            return (Criteria) this;
        }

        public Criteria andCommodityNumIn(List<Integer> values) {
            addCriterion("commodity_num in", values, "commodityNum");
            return (Criteria) this;
        }

        public Criteria andCommodityNumNotIn(List<Integer> values) {
            addCriterion("commodity_num not in", values, "commodityNum");
            return (Criteria) this;
        }

        public Criteria andCommodityNumBetween(Integer value1, Integer value2) {
            addCriterion("commodity_num between", value1, value2, "commodityNum");
            return (Criteria) this;
        }

        public Criteria andCommodityNumNotBetween(Integer value1, Integer value2) {
            addCriterion("commodity_num not between", value1, value2, "commodityNum");
            return (Criteria) this;
        }

        public Criteria andCommodityMoneyIsNull() {
            addCriterion("commodity_money is null");
            return (Criteria) this;
        }

        public Criteria andCommodityMoneyIsNotNull() {
            addCriterion("commodity_money is not null");
            return (Criteria) this;
        }

        public Criteria andCommodityMoneyEqualTo(Integer value) {
            addCriterion("commodity_money =", value, "commodityMoney");
            return (Criteria) this;
        }

        public Criteria andCommodityMoneyNotEqualTo(Integer value) {
            addCriterion("commodity_money <>", value, "commodityMoney");
            return (Criteria) this;
        }

        public Criteria andCommodityMoneyGreaterThan(Integer value) {
            addCriterion("commodity_money >", value, "commodityMoney");
            return (Criteria) this;
        }

        public Criteria andCommodityMoneyGreaterThanOrEqualTo(Integer value) {
            addCriterion("commodity_money >=", value, "commodityMoney");
            return (Criteria) this;
        }

        public Criteria andCommodityMoneyLessThan(Integer value) {
            addCriterion("commodity_money <", value, "commodityMoney");
            return (Criteria) this;
        }

        public Criteria andCommodityMoneyLessThanOrEqualTo(Integer value) {
            addCriterion("commodity_money <=", value, "commodityMoney");
            return (Criteria) this;
        }

        public Criteria andCommodityMoneyIn(List<Integer> values) {
            addCriterion("commodity_money in", values, "commodityMoney");
            return (Criteria) this;
        }

        public Criteria andCommodityMoneyNotIn(List<Integer> values) {
            addCriterion("commodity_money not in", values, "commodityMoney");
            return (Criteria) this;
        }

        public Criteria andCommodityMoneyBetween(Integer value1, Integer value2) {
            addCriterion("commodity_money between", value1, value2, "commodityMoney");
            return (Criteria) this;
        }

        public Criteria andCommodityMoneyNotBetween(Integer value1, Integer value2) {
            addCriterion("commodity_money not between", value1, value2, "commodityMoney");
            return (Criteria) this;
        }

        public Criteria andOrderdetailsOther1IsNull() {
            addCriterion("orderDetails_other1 is null");
            return (Criteria) this;
        }

        public Criteria andOrderdetailsOther1IsNotNull() {
            addCriterion("orderDetails_other1 is not null");
            return (Criteria) this;
        }

        public Criteria andOrderdetailsOther1EqualTo(String value) {
            addCriterion("orderDetails_other1 =", value, "orderdetailsOther1");
            return (Criteria) this;
        }

        public Criteria andOrderdetailsOther1NotEqualTo(String value) {
            addCriterion("orderDetails_other1 <>", value, "orderdetailsOther1");
            return (Criteria) this;
        }

        public Criteria andOrderdetailsOther1GreaterThan(String value) {
            addCriterion("orderDetails_other1 >", value, "orderdetailsOther1");
            return (Criteria) this;
        }

        public Criteria andOrderdetailsOther1GreaterThanOrEqualTo(String value) {
            addCriterion("orderDetails_other1 >=", value, "orderdetailsOther1");
            return (Criteria) this;
        }

        public Criteria andOrderdetailsOther1LessThan(String value) {
            addCriterion("orderDetails_other1 <", value, "orderdetailsOther1");
            return (Criteria) this;
        }

        public Criteria andOrderdetailsOther1LessThanOrEqualTo(String value) {
            addCriterion("orderDetails_other1 <=", value, "orderdetailsOther1");
            return (Criteria) this;
        }

        public Criteria andOrderdetailsOther1Like(String value) {
            addCriterion("orderDetails_other1 like", value, "orderdetailsOther1");
            return (Criteria) this;
        }

        public Criteria andOrderdetailsOther1NotLike(String value) {
            addCriterion("orderDetails_other1 not like", value, "orderdetailsOther1");
            return (Criteria) this;
        }

        public Criteria andOrderdetailsOther1In(List<String> values) {
            addCriterion("orderDetails_other1 in", values, "orderdetailsOther1");
            return (Criteria) this;
        }

        public Criteria andOrderdetailsOther1NotIn(List<String> values) {
            addCriterion("orderDetails_other1 not in", values, "orderdetailsOther1");
            return (Criteria) this;
        }

        public Criteria andOrderdetailsOther1Between(String value1, String value2) {
            addCriterion("orderDetails_other1 between", value1, value2, "orderdetailsOther1");
            return (Criteria) this;
        }

        public Criteria andOrderdetailsOther1NotBetween(String value1, String value2) {
            addCriterion("orderDetails_other1 not between", value1, value2, "orderdetailsOther1");
            return (Criteria) this;
        }

        public Criteria andOrderdetailsOther2IsNull() {
            addCriterion("orderDetails_other2 is null");
            return (Criteria) this;
        }

        public Criteria andOrderdetailsOther2IsNotNull() {
            addCriterion("orderDetails_other2 is not null");
            return (Criteria) this;
        }

        public Criteria andOrderdetailsOther2EqualTo(String value) {
            addCriterion("orderDetails_other2 =", value, "orderdetailsOther2");
            return (Criteria) this;
        }

        public Criteria andOrderdetailsOther2NotEqualTo(String value) {
            addCriterion("orderDetails_other2 <>", value, "orderdetailsOther2");
            return (Criteria) this;
        }

        public Criteria andOrderdetailsOther2GreaterThan(String value) {
            addCriterion("orderDetails_other2 >", value, "orderdetailsOther2");
            return (Criteria) this;
        }

        public Criteria andOrderdetailsOther2GreaterThanOrEqualTo(String value) {
            addCriterion("orderDetails_other2 >=", value, "orderdetailsOther2");
            return (Criteria) this;
        }

        public Criteria andOrderdetailsOther2LessThan(String value) {
            addCriterion("orderDetails_other2 <", value, "orderdetailsOther2");
            return (Criteria) this;
        }

        public Criteria andOrderdetailsOther2LessThanOrEqualTo(String value) {
            addCriterion("orderDetails_other2 <=", value, "orderdetailsOther2");
            return (Criteria) this;
        }

        public Criteria andOrderdetailsOther2Like(String value) {
            addCriterion("orderDetails_other2 like", value, "orderdetailsOther2");
            return (Criteria) this;
        }

        public Criteria andOrderdetailsOther2NotLike(String value) {
            addCriterion("orderDetails_other2 not like", value, "orderdetailsOther2");
            return (Criteria) this;
        }

        public Criteria andOrderdetailsOther2In(List<String> values) {
            addCriterion("orderDetails_other2 in", values, "orderdetailsOther2");
            return (Criteria) this;
        }

        public Criteria andOrderdetailsOther2NotIn(List<String> values) {
            addCriterion("orderDetails_other2 not in", values, "orderdetailsOther2");
            return (Criteria) this;
        }

        public Criteria andOrderdetailsOther2Between(String value1, String value2) {
            addCriterion("orderDetails_other2 between", value1, value2, "orderdetailsOther2");
            return (Criteria) this;
        }

        public Criteria andOrderdetailsOther2NotBetween(String value1, String value2) {
            addCriterion("orderDetails_other2 not between", value1, value2, "orderdetailsOther2");
            return (Criteria) this;
        }

        public Criteria andOrderdetailsOther3IsNull() {
            addCriterion("orderDetails_other3 is null");
            return (Criteria) this;
        }

        public Criteria andOrderdetailsOther3IsNotNull() {
            addCriterion("orderDetails_other3 is not null");
            return (Criteria) this;
        }

        public Criteria andOrderdetailsOther3EqualTo(String value) {
            addCriterion("orderDetails_other3 =", value, "orderdetailsOther3");
            return (Criteria) this;
        }

        public Criteria andOrderdetailsOther3NotEqualTo(String value) {
            addCriterion("orderDetails_other3 <>", value, "orderdetailsOther3");
            return (Criteria) this;
        }

        public Criteria andOrderdetailsOther3GreaterThan(String value) {
            addCriterion("orderDetails_other3 >", value, "orderdetailsOther3");
            return (Criteria) this;
        }

        public Criteria andOrderdetailsOther3GreaterThanOrEqualTo(String value) {
            addCriterion("orderDetails_other3 >=", value, "orderdetailsOther3");
            return (Criteria) this;
        }

        public Criteria andOrderdetailsOther3LessThan(String value) {
            addCriterion("orderDetails_other3 <", value, "orderdetailsOther3");
            return (Criteria) this;
        }

        public Criteria andOrderdetailsOther3LessThanOrEqualTo(String value) {
            addCriterion("orderDetails_other3 <=", value, "orderdetailsOther3");
            return (Criteria) this;
        }

        public Criteria andOrderdetailsOther3Like(String value) {
            addCriterion("orderDetails_other3 like", value, "orderdetailsOther3");
            return (Criteria) this;
        }

        public Criteria andOrderdetailsOther3NotLike(String value) {
            addCriterion("orderDetails_other3 not like", value, "orderdetailsOther3");
            return (Criteria) this;
        }

        public Criteria andOrderdetailsOther3In(List<String> values) {
            addCriterion("orderDetails_other3 in", values, "orderdetailsOther3");
            return (Criteria) this;
        }

        public Criteria andOrderdetailsOther3NotIn(List<String> values) {
            addCriterion("orderDetails_other3 not in", values, "orderdetailsOther3");
            return (Criteria) this;
        }

        public Criteria andOrderdetailsOther3Between(String value1, String value2) {
            addCriterion("orderDetails_other3 between", value1, value2, "orderdetailsOther3");
            return (Criteria) this;
        }

        public Criteria andOrderdetailsOther3NotBetween(String value1, String value2) {
            addCriterion("orderDetails_other3 not between", value1, value2, "orderdetailsOther3");
            return (Criteria) this;
        }

        public Criteria andOrderdetailsOther4IsNull() {
            addCriterion("orderDetails_other4 is null");
            return (Criteria) this;
        }

        public Criteria andOrderdetailsOther4IsNotNull() {
            addCriterion("orderDetails_other4 is not null");
            return (Criteria) this;
        }

        public Criteria andOrderdetailsOther4EqualTo(Integer value) {
            addCriterion("orderDetails_other4 =", value, "orderdetailsOther4");
            return (Criteria) this;
        }

        public Criteria andOrderdetailsOther4NotEqualTo(Integer value) {
            addCriterion("orderDetails_other4 <>", value, "orderdetailsOther4");
            return (Criteria) this;
        }

        public Criteria andOrderdetailsOther4GreaterThan(Integer value) {
            addCriterion("orderDetails_other4 >", value, "orderdetailsOther4");
            return (Criteria) this;
        }

        public Criteria andOrderdetailsOther4GreaterThanOrEqualTo(Integer value) {
            addCriterion("orderDetails_other4 >=", value, "orderdetailsOther4");
            return (Criteria) this;
        }

        public Criteria andOrderdetailsOther4LessThan(Integer value) {
            addCriterion("orderDetails_other4 <", value, "orderdetailsOther4");
            return (Criteria) this;
        }

        public Criteria andOrderdetailsOther4LessThanOrEqualTo(Integer value) {
            addCriterion("orderDetails_other4 <=", value, "orderdetailsOther4");
            return (Criteria) this;
        }

        public Criteria andOrderdetailsOther4In(List<Integer> values) {
            addCriterion("orderDetails_other4 in", values, "orderdetailsOther4");
            return (Criteria) this;
        }

        public Criteria andOrderdetailsOther4NotIn(List<Integer> values) {
            addCriterion("orderDetails_other4 not in", values, "orderdetailsOther4");
            return (Criteria) this;
        }

        public Criteria andOrderdetailsOther4Between(Integer value1, Integer value2) {
            addCriterion("orderDetails_other4 between", value1, value2, "orderdetailsOther4");
            return (Criteria) this;
        }

        public Criteria andOrderdetailsOther4NotBetween(Integer value1, Integer value2) {
            addCriterion("orderDetails_other4 not between", value1, value2, "orderdetailsOther4");
            return (Criteria) this;
        }

        public Criteria andOrderdetailsOther5IsNull() {
            addCriterion("orderDetails_other5 is null");
            return (Criteria) this;
        }

        public Criteria andOrderdetailsOther5IsNotNull() {
            addCriterion("orderDetails_other5 is not null");
            return (Criteria) this;
        }

        public Criteria andOrderdetailsOther5EqualTo(Integer value) {
            addCriterion("orderDetails_other5 =", value, "orderdetailsOther5");
            return (Criteria) this;
        }

        public Criteria andOrderdetailsOther5NotEqualTo(Integer value) {
            addCriterion("orderDetails_other5 <>", value, "orderdetailsOther5");
            return (Criteria) this;
        }

        public Criteria andOrderdetailsOther5GreaterThan(Integer value) {
            addCriterion("orderDetails_other5 >", value, "orderdetailsOther5");
            return (Criteria) this;
        }

        public Criteria andOrderdetailsOther5GreaterThanOrEqualTo(Integer value) {
            addCriterion("orderDetails_other5 >=", value, "orderdetailsOther5");
            return (Criteria) this;
        }

        public Criteria andOrderdetailsOther5LessThan(Integer value) {
            addCriterion("orderDetails_other5 <", value, "orderdetailsOther5");
            return (Criteria) this;
        }

        public Criteria andOrderdetailsOther5LessThanOrEqualTo(Integer value) {
            addCriterion("orderDetails_other5 <=", value, "orderdetailsOther5");
            return (Criteria) this;
        }

        public Criteria andOrderdetailsOther5In(List<Integer> values) {
            addCriterion("orderDetails_other5 in", values, "orderdetailsOther5");
            return (Criteria) this;
        }

        public Criteria andOrderdetailsOther5NotIn(List<Integer> values) {
            addCriterion("orderDetails_other5 not in", values, "orderdetailsOther5");
            return (Criteria) this;
        }

        public Criteria andOrderdetailsOther5Between(Integer value1, Integer value2) {
            addCriterion("orderDetails_other5 between", value1, value2, "orderdetailsOther5");
            return (Criteria) this;
        }

        public Criteria andOrderdetailsOther5NotBetween(Integer value1, Integer value2) {
            addCriterion("orderDetails_other5 not between", value1, value2, "orderdetailsOther5");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}